<template>
  <div class="scroll">
    <div class="scrollbar">
      <div class="scrollbar-item"  v-for="item of store.state.sort.sortList" :key="item.id">
        {{ item.title }}
      </div>
    </div>
  </div>
</template>

<script>
import { useStore } from 'vuex'
export default {
  setup() {
    const store = useStore()
    return { store }
  }
}
</script>

<style scoped>
.scroll{
  overflow: hidden;
  margin-top: 0;

}
.scrollbar{
  display: flex;
  overflow-x: scroll;
  overflow-y: hidden;
  width: 100%;
  height: 40px;
  text-align: center;
}
.scrollbar-item {
  font-family: YouYuan;
  width: fit-content;
  height: 40px;
  line-height: 40px;
  margin-right: 20px;
  margin-left: 10px;
  display: inline-block;
  justify-content: center;
  border-radius: 4px;
  flex: 0 0 auto;
  font-size: 14px;
  color: rgb(153, 153, 153);
}

</style>